<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
</body>
<script>
    var arr = new Array(30);
    var number = 2
    var arr1 = []
    for (var i = 0; i < arr.length; i++) {
        arr[i] = number
        number += 2
    }
    arr1.push.apply(arr1, arr)
    console.log(arr1)
</script>

</html>